PORTNAME=	eog-plugins
DISTVERSION=	44.0
CATEGORIES=	graphics gnome
MASTER_SITES=	GNOME/sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+)\..*/\1/}
DIST_SUBDIR=	gnome3

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	Plug-ins for the Eye of GNOME image viewer application

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	eog:graphics/eog \
		appstream-util:devel/appstream-glib
LIB_DEPENDS=	libgdata.so:devel/libgdata \
		libexif.so:graphics/libexif \
		libpeas-1.0.so:devel/libpeas
RUN_DEPENDS=	eog:graphics/eog \
		appstream-util:devel/appstream-glib \
		${PYTHON_PKGNAMEPREFIX}libpeas>=0:devel/py-libpeas@${PY_FLAVOR}

PORTSCOUT=	limitw:1,even

USE_GNOME=	cairo gdkpixbuf2 glib20 gtk30 introspection:build libxml2
USES=		gettext gnome libtool localbase meson pkgconfig python:3.7+ \
		tar:xz

BINARY_ALIAS=	python3=${PYTHON_CMD}

GLIB_SCHEMAS=	org.gnome.eog.plugins.exif-display.gschema.xml \
		org.gnome.eog.plugins.export-to-folder.gschema.xml \
		org.gnome.eog.plugins.fullscreenbg.gschema.xml \
		org.gnome.eog.plugins.pythonconsole.gschema.xml

OPTIONS_DEFINE=	CHAMPLAIN
OPTIONS_DEFAULT=CHAMPLAIN
OPTIONS_SUB=	yes
CHAMPLAIN_DESC=	Champlain map plugin

CHAMPLAIN_LIB_DEPENDS=	libcogl.so:graphics/cogl \
			libclutter-1.0.so:graphics/clutter \
			libclutter-gtk-1.0.so:graphics/clutter-gtk3 \
			libchamplain-0.12.so:graphics/libchamplain
CHAMPLAIN_USES=		gl xorg
CHAMPLAIN_USE=		GL=egl XORG=x11,xcomposite,xdamage,xext,xfixes,xi,xrandr
CHAMPLAIN_MESON_TRUE=	plugin_map

.include <bsd.port.mk>
